<!DOCTYPE html>
<html class="index_body">
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <link rel="stylesheet" href="/Public/mui/computer/css/bootstrap.css"/>
    <link rel="stylesheet" href="/Public/mui/computer/css/index.css"/>
</head>
<body class="index_body">
<div id="section">
    <table class="table table-hover table-bordered">
        <thead>
        <tr>
            <th>订单信息</th>
            <th>订单号</th>
            <th>所属省市</th>
            <th>顾问姓名</th>
            <th>顾问ID</th>
            <th>渠道编号</th>
            <th>车辆编号</th>
            <th>车辆价格</th>
        </tr>
        </thead>
        <tbody>
        <tr>
            <td></td>
            <td>{{$order_data['orderid']}}</td>
            <td>{{$order_data['provinceid']}} / {{$order_data['cityid']}}</td>
            <td>{{$order_data['GWname']}}</td>
            <td>{{$order_data['GWnum']}}</td>
            <td>{{$order_data['waynum']}}</td>
            <td>{{$order_data['carnum']}}</td>
            <td>{{$order_data['carprice']}}</td>
        </tr>
        </tbody>
    </table>
    <table class="table table-hover table-bordered">
        <thead>
        <tr>
            <th>客户信息</th>
            <th>性别</th>
            <th>年龄</th>
            <th>所属城市</th>
            <th>婚姻状态</th>
            <th>户籍地址</th>
            <th>常驻地址</th>
            <th>个人住房性质</th>
            <th>身份证(照片)</th>
            <th>联系方式</th>
        </tr>
        </thead>
        <tbody>
        <tr>
            <td></td>
            <td>{{$user_data['sex']}}</td>
            <td>{{$user_data['age']}}</td>
            <td>{{$user_data['city']}}</td>
            <td>{{$user_data['marriage']}}</td>
            <td>{{$user_data['household']}}</td>
            <td>{{$user_data['resident']}}</td>
            <td>{{$user_data['housing']}}</td>
            <td>
                <a href="http://www.woaicq.top/{{$user_data['identify_url'][0]}}">点击查看身份证正面</a><br />
                <a href="http://www.woaicq.top/{{$user_data['identify_url'][1]}}">点击查看身份证反面</a>
            </td>
            <td><a href="tel:{{$user_data['tel']}}">{{$user_data['tel']}}</a></td>
        </tr>
        </tbody>
    </table>
    <table class="table table-hover table-bordered">
        <thead>
        <tr>
            <th>客户信息</th>
            <th>驾照</th>
            <th>上班单位</th>
            <th>税前均收入</th>
            <th>信用卡情况</th>
            <th>银行借还款情况</th>
            <th>非银行拖欠记录</th>
            <th>银行流水</th>
            <th>工作证明</th>
            <th>征信报告</th>
        </tr>
        </thead>
        <tbody>
        <tr>
            <td></td>
            <td><a href="http://www.woaicq.top/{{$user_data['driver_url'][0]}}">点击查看驾驶证照片</a></td>
            <td>{{$user_data['workunit']}}</td>
            <td>{{$user_data['income']}}</td>
            <td>{{$user_data['creditcard']}}</td>
            <td>{{$user_data['borrowing']}}</td>
            <td>
            </td>
            <td><if condition="$bankflowcount gt 0"><for start="0" end="$bankflowcount">
                    <a href="http://www.woaicq.top/{{$user_data['bankflow_url'][$i]}}">图 {{$i+1}}</a>
                </for></if></td>
            <td><if condition="$workproofcount gt 0"><for start="0" end="$workproofcount">
                    <a href="http://www.woaicq.top/{{$user_data['workproof_url'][$i]}}">图 {{$i+1}}</a>
                </for></if></td>
            <td><if condition="$creditreportcount gt 0"><for start="0" end="$creditreportcount">
                    <a href="http://www.woaicq.top/{{$user_data['creditreport_url'][$i]}}">图 {{$i+1}}</a>
                </for></if></td>
        </tr>
        </tbody>
    </table>
    <include file="News:news" />
    <div class="btnK">
        <button type="button" class="btn btn-success navbar-btn" onclick="isGetOrder(1);">通过</button>
        <button type="button" class="btn btn-orange navbar-btn" onclick="isGetOrder(-2);">驳回</button>
        <button type="button" class="btn btn btn-danger navbar-btn" onclick="isGetOrder(-1);">拒单</button>
    </div>
</div>
<script src="/Public/mui/computer/js/jquery-1.11.3.js"></script>
<script src="/Public/mui/computer/js/back.js"></script>
<script>
function isGetOrder(status){
    var orderid = "{{$order_data['orderid']}}";
    if(orderid == ""){
        alert("对不起订单编号未空");return false;
    }
    data = {orderid:orderid,status:status}
    $.post("riskEvaluate",data,function(res){
        console.log(res);
        if(res['ret'] == 1){
            // window.history.back(-1);
            window.location.href="/admin/order/orderlistindex";
        }else{
            window.location.href="/admin/order/orderlistindex";
             
        }
    });
}

</script>
</body>
</html>